The Version ('vers') Resource
You need to include a version resource that defines with which version of QuickDraw GX your printing extension or printer driver is compatible. In the resource files for your printing extension, you can also include additional standard version resources, as described in Inside Macintosh: Macintosh Toolbox Essentials.For printing extensions, you need to include a version resource with an ID of
gxPrintingExtensionBaseID
that defines with which version of QuickDraw GX your extension is compatible. For printer drivers, you need to include a version resource with an ID ofgxPrintingDriverBaseID
that defines with which version of QuickDraw GX your driver is compatible.The first byte defines the QuickDraw GX version. For the current version of QuickDraw GX, the first byte must have a value of either 1 or 0. Listing 6-2 shows the version resources that define QuickDraw GX compatibility for the background picture printing extension and for the ImageWriter II printer driver.
Listing 6-2 QuickDraw GX version resources
resource 'vers' (gxPrintingExtensionBaseID, sysHeap, purgeable) { 0x0, 0x0, release, 0x0, verUS, "", ""}; resource 'vers' (gxPrintingDriverBaseID, sysHeap, purgeable) { 0x01, 0x00, release, 0x00, verUS, "1.00", "1.00, Copyright \251 Apple Computer, Inc. 1989-1993"};
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help